package com.mike.uaa.core;

/**
 * @author z
 */
public abstract class AuthenticationUtils {


    public static boolean isAuthenticated(Authentication authentication) {
        boolean authenticated = authentication.isAuthenticated();
        return authentication != null && authentication.isAuthenticated();
    }

    public static boolean unauthenticated(Authentication authentication) {
        return !isAuthenticated(authentication);
    }

    private AuthenticationUtils() {
    }
}
